package com.jiazhong.spring.ioc.annotation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Data
@Component
public class DemoD {
    @Autowired
    private DemoB db;
    @Autowired  //byType+byName
    private DemoD1 demoD2;
    @Autowired  //byType
    @Qualifier("demoD3") //byName
    private DemoD1 dddd;
}
